import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';

import { IonicModule } from '@ionic/angular';

import { CompanydetailPage } from './companydetail.page';
import { Location } from '@angular/common';
const routes: Routes = [
  {
    path: '',
    component: CompanydetailPage
  }
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    RouterModule.forChild(routes)
  ],
  declarations: [CompanydetailPage]
})
export class CompanydetailPageModule {
  constructor(
    private location: Location
  ) {}
  goBack(): void {
    this.location.back();
  }

}
